const path = require('path')

// 写好配置路径
const resolve = (...paths) => {
  return path.resolve(__dirname, ...paths)
}

module.exports = {
  entry: {
    import: resolve('index.js'),
  },
  externals: {
    'jquery': [
      'https://code.jquery.com/jquery-3.6.0.min.js',
      'jQuery'
    ]
  },
  mode: 'development',
  externalsType: 'script'
}